<template>
	<view class="">
		<u-cell-group  class="home-list">
			<view @tap="go(item)">
					<u-cell-item  :icon="item.icon" :icon-style="{color:item.color}" :title="item.title" >	</u-cell-item>
			</view>
		
		</u-cell-group>
	</view>
	
</template>

<script>
	export default{
		props:{
			item:Object,
			index:Number
		},
		methods:{
			//去设置页
			go(item){
				
				switch (this.item.navtype){
					case 'navigateTo':
					if(this.item.url){uni.navigateTo({
						url:this.item.url
					})}		
					console.log("跳转"+this.item)
						break;
					default:
						break;
				}
				/* if(index==3){
					uni.navigateTo({
						url:'../../pages/set/set'
					})	
					} */
				}
			
		}
	}
</script>

<style>
</style>
